# import time
#
# from selenium import webdriver
#
# driver = webdriver.Chrome()
# driver.maximize_window()
#
# driver.get("https://www.baidu.com")
# print(driver.title)
# print(f'当前活动窗口的句柄：{driver.current_window_handle}')
#
# driver.switch_to.new_window('tab')
# time.sleep(1)
# print(f'当前活动窗口的句柄：{driver.current_window_handle}')
#
# driver.switch_to.new_window('window')
# driver.get('https://taobao.com')
# print(driver.title)
# print(f'当前活动窗口的句柄：{driver.current_window_handle}')
#
# window_list = driver.window_handles
# print(f'所有窗口的句柄{driver.window_handles}')
# print(driver.title)
#
# # 切换百度
# driver.switch_to.window(window_list[0])
# print(driver.title)
# input()
#
# # from selenium.webdriver.chrome.options import Options
# #
# # # from selenium.webdriver.firefox.options import Options
# #
# # # 创建 Chrome 选项
# # options = Options()
# #
# # # 设置 Chrome 选项，例如无头模式
# # # chrome_options.add_argument('--headless')
# #
# # # 定义所需的浏览器功能
# #
# # driver = webdriver.Remote(
# #     command_executor='http://192.168.68.135:4444/wd/hub',
# #     options=options
# # )
# #
# # driver.maximize_window()
# # driver.get("https://www.baidu.com")
# # for i in range(101):
# #     time.sleep(1)
# #     print(i)


import math
